package com.blog.service;


import com.blog.model.DiscussInfo;
import com.blog.model.EmailModel;
import com.blog.pojo.Discuss;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 *
 * @author JiaFuJun
 * @version v1.0
 * @date 2020-06-08
 */
public interface DiscussService {

    void insert(Discuss record);

    void update(Discuss record);

    void del(Object id);

    List<DiscussInfo> getByArticleId(Integer id);

    List<Discuss> getList(Discuss record);

    PageInfo<Discuss> pageList(Discuss record, Integer pageNo, Integer pageSize);

    EmailModel getById(Integer id);

    void delByArtId(Object id);

    void handle(Discuss record);
}